# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fred
pkgver=0.2.0
pkgrel=2
pkgdesc='Cross-platform M$ registry hive editor.'
groups=('blackarch' 'blackarch-windows')
arch=('x86_64' 'aarch64')
url='https://www.pinguin.lu/fred'
license=('GPL3')
depends=('hivex' 'qt4' 'qtwebkit')
makedepends=('hivex' 'qt4' 'qtwebkit')
source=("http://files.pinguin.lu/$pkgname-$pkgver.tar.gz")
sha512sums=('728d163b4225a4f4ec5c07e6c3331155a8357d109da82ddb95ef7e3a25ed52be401717ac419d050ede3df947f0a186251c0bf7d5f9f5aaba813f14f6e77c61ac')

build() {
  cd "$pkgname-$pkgver"

  qmake-qt4
  make
}

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/$pkgname"
  install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"

  cp -a --no-preserve=ownership report_templates \
    "$pkgdir/usr/share/$pkgname"
}

